out_logdna: remove unused store#7629
out_logdna: remove unused store#7629edsiper merged 2 commits intofluent:masterfrom DavidKorczynski:out-logdna-remove-unused-var
Conversation
`len` is assigned but never used. No need for the operations related to this. Signed-off-by: David Korczynski <david@adalogics.com>
leonardo-albertovich
left a comment
There was a problem hiding this comment.
Is it me or logdna_config_destroy doesn't release _hostname? Additionally, there are a few points in logdna_config_create where flb_free is used instead of logdna_config_destroy even after fields that need to be released have been populated.
Also the check on line 313 should be in line 321 because both branches of the conditional allocate memory, the result of flb_uri_encode is not checked and none of the results of the flb_sds_cat calls are checked either.
I'm just mentioning it in case you want to proactively fix those.
Signed-off-by: David Korczynski <david@adalogics.com>
leonardo-albertovich
left a comment
There was a problem hiding this comment.
I'm approving this as discussed in slack but please don't forget to issue a followup PR to replace those flb_free(ctx) calls with logdna_config_destroy(ctx), otherwise there will be leaks
lenis assigned but never used. No need for the operations related to this.Enter
[N/A]in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-testlabel to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.